const { app, BrowserWindow } = require('electron')
const nativeImage = require('electron').nativeImage;

function createWindow () {
  const win = new BrowserWindow({
    width: 500,
    height: 450,
    webPreferences: {
      nodeIntegration: true,
      enableRemoteModule:true
    }
  })
  require("./render/menu.js");
  win.loadFile('index.html');
}


app.whenReady().then(createWindow)

app.on('window-all-closed', () => {
  if (process.platform !== 'darwin') {
    app.quit();
  }
})

app.on('activate', () => {
  if (BrowserWindow.getAllWindows().length === 0) {
    createWindow()
  }
})







